package com.cdtye.shuoh.controller.device;

import com.cdtye.common.webcore.web.AjaxJson;
import com.cdtye.shuoh.domain.device.vo.DeviceTopicVo;
import com.cdtye.shuoh.service.device.DeviceTopicService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 设备Topic数据Controller
 * @author ZhongWang Wang
 * @date 2022-12-21
 */


@RestController
@RequestMapping("/deviceTopic")
public class DeviceTopicController {

    @Autowired
    private DeviceTopicService deviceTopicService;

    /**
     * 分页查询
     * @param vo
     * @return
     */
    @PostMapping("/pageList")
    public AjaxJson pageList(@RequestBody DeviceTopicVo vo){
        return AjaxJson.success(deviceTopicService.pageList(vo));
    }
}
